<%--list page --%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<center>
	<!-- 게시판 메뉴 -->
	<h1>사진방</h1>
	
	<table border=0 width="600" cellpadding="0" cellspacing="0">
		<tr>
		<%int j=1; %>
		<s:iterator value="list">
			<td align="left" valign="top">
				<s:a href="../board/pcontent.do?no=%{no}&jsptype=%{jsptype}&page=%{curpage}&ono=%{ono}" theme="ajax" targets="blogcontent">
					<img src="../board/photo/${filename}" width="150" height="150" border="0">
				</s:a>
				<br>${rownum }&nbsp;${subject}
			</td>
			<c:if test="<%=j%4==0 %>">
			<tr><td colspan="4"><br></td></tr>
			</c:if>
			<%j++; %>
		</s:iterator>
		</tr>
	</table>
		
	<!-- 메뉴 검색 찾기 -->
	<table	border=0 width=600 cellpadding="5">
		<tr>
			<td align="left">
			&nbsp;
			</td>
			<td align="right">
			<s:a href="../board/boardselect.do?ono=%{ono}&jsptype=%{jsptype}&page=%{curpage>1?curpage-1:curpage}" theme="ajax" targets="blogcontent">
			<img src="../../image/board/left_arrow.png" border=0>
			</s:a>
		<c:forEach var="i" begin="1" end="${totalpage }">
				<s:url id="pURL" action="boardselect" namespace="/user/blog/board">
				<s:param name="page">${i }</s:param>
				<s:param name="jsptype">${jsptype }</s:param>
				<s:param name="ono">${ono }</s:param>
				</s:url>
				<s:a href="%{pURL}" theme="ajax" targets="blogcontent">${i}</s:a>
		</c:forEach>
		<s:a href="../board/blogList.do?ono=%{ono}&jsptype=%{jsptype}&page=%{curpage<totalpage?curpage+1:curpage }" theme="ajax" targets="blogcontent">
		<img src="../../image/board/right_arrow.png" border=0>
		</s:a>
		</td>
		
		</tr>
		<tr>
			<td colspan="2" align="center">
				&nbsp;
			</td>
		</tr>
	</table>
	</center>
</body>
</html>